package org.dromara.business.domain.bo;

import org.dromara.business.domain.AppUser;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 钱包用户业务对象 app_user
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@AutoMapper(target = AppUser.class, reverseConvertGenerate = false)
public class AppUserBo {

    /**
     * id
     */
    private Long id;

    /**
     * 推荐人
     */
    @NotNull(message = "推荐人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long spreadId;

    /**
     * 等级
     */
    private Integer level;

    /**
     * 钱包地址
     */
    private String walletAddress;

    /**
     * 帐号状态
     */
    @NotBlank(message = "帐号状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 总质押金额
     */
    private BigDecimal totalStaked;

    /**
     * 总收益
     */
    @NotNull(message = "总收益不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalEarnings;

    /**
     * 绑定状态
     */
    private Integer bindStatus;


}
